<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tag" uri="surveyonline-taglib" %> 
<%@page import="fr.univ.surveyonline.model.Survey"%>
<%
	String xml = (String) request.getAttribute("xml");
	String isSondeur = (String) request.getAttribute("isSondeur");
	String idSurvey = (String) request.getAttribute("idSurvey");
	boolean isBarometre = (request.getSession().getAttribute("barometre") != null);
	
	if ((xml == null)||(isSondeur == null)||(idSurvey == null)) {
		throw new IllegalStateException("est null");
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
    <title><tag:languageTag id="title"/></title>
	<%@ include file="/layout/head.tag" %>
	<link rel="stylesheet" type="text/css" media="screen" href="/css/style-result-survey.css" />
	<script type="text/javascript" src="/js/ext-js/uxvismode.js"></script>
	<script type="text/javascript" src="/js/utils/encoder.js"></script>
	<script type="text/javascript" src="/js/result-survey/xml-tree-loader.js"></script>
	<script type="text/javascript" src="/js/result-survey/xml-data-helper.js"></script>
	<script type="text/javascript" src="/js/result-survey/gui-survey-tree.js"></script>
	<script type="text/javascript" src="/js/result-survey/gui-survey-treepanel.js"></script>
	<script type="text/javascript" src="/js/result-survey/gui-survey-chartpanel.js"></script>
	<script type="text/javascript" src="/js/result-survey/gui-survey-chartpanel-barometre.js"></script>	
	<script type="text/javascript" src="/js/result-survey/gui-survey-questions.js"></script> 
	<script type="text/javascript" src="/js/result-survey/main.js"></script>
</head>
<body>


<div id="global">
	<div id="entete">
		<%@ include file="/layout/menu.tag" %>
	</div>
	<div id="contenu">
		<h2><tag:languageTag id="result_sond"/></h2>
		<p>
			<tag:languageTag id="result_announce"/>
		</p>
		<h3><tag:languageTag id="questions"/></h3>
		<div id="gui-ext-question"></div>
		<h3><tag:languageTag id="result"/></h3>
		<div id="result-view"></div>
		<h3><tag:languageTag id="analysis"/></h3>
		<div id="result-analysis">
			<textarea id="result-analysis-text" onFocus="this.value=''" disabled='true'></textarea>
		</div>
		<div id="gui-ext-xml-preview"></div>
		<div id="xml-preview"></div>
		<div id="survey-proprieties" style="display:none;"></div>
		<div id="gui-ext-survey-save"></div>	
		<div id="xml-generated" style="display:none;"><%=xml%></div>
		<div id="is-sondeur" style="display:none;"><%=isSondeur%></div>
		<div id="survey-id" style="display:none;"><%=idSurvey%></div>
		<input type="hidden" id="isBarometre" value="<%=isBarometre%>" />
	</div>
	<div id="pied">
		<%@ include file="/layout/pied.tag" %>
	</div>
</div>

</body>
</html>